﻿@{
    Layout = "/Areas/Admin/Views/Shared/Manager.cshtml";
}
@model IEnumerable<Shumei.EFCore.Model.Course>
<!DOCTYPE html>

@section scripts
{
    ChangeSelect("course");
}
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
</head>
<body>
    <div>
        <!-- 作品列表 -->
        <h3>所有作品列表</h3>

        <div class="hr-div"> <hr /></div>
        <div class="row">
                @{
                    foreach (var m in Model)
                    {
                         <div class="col-lg-3 col-md-3 col-sm-3  text-center">
                        <a style="width:214px;height:61px;" href="admin-user-list.html">
                            <img alt="" src="@Url.Content(m.CourseIcon)" style="width:100%;height:auto;" />
                            <div class="alert alert-danger">
                                <i class="fa fa-user fa-4x"></i>
                                <span class="label label-info">@m.Name</span>
                                <span class="label label-danger">5</span>
                                <p>
                                    @m.CourseSimpleDes
                                    
                                </p>
                            </div>
                         </a>
                        <div style="margin-bottom:40px; margin-top:-10px;">
                            <a href="@Url.Action("EditCourse", "Courses", new { id=m.Id })"><span class="label label-info">编辑</span></a>
                            <a href="@Url.Action("DeleteCourse", "Courses", new { id = m.Id })"><span class="label label-danger">删除</span></a>
                        </div>
                    </div>
                    }
                }

        </div>
        
        <div class="" style="margin-bottom:30px;">
            <button type="button" class="btn btn-default" aria-label="Left Align">
                <span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
            </button>
            <input type="text" style="width:25px;" value="@ViewBag.page" />
            <button type="button" class="btn btn-default" aria-label="Left Align">
                <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
            </button>
            <label>total:@ViewBag.totalPage</label>
        </div>

        <div class="btn-group btn-group-lg" role="group" aria-label="...">
            <a href="@Url.Action("UploadCourse", "Courses")">
                <span class="label label-success">添加新课程</span>
            </a>
    </div>
</body>
</html>
